#include <windows.h>
#include "CUpdateKeyItemsPacket.h"


CUpdateKeyItemsPacket::CUpdateKeyItemsPacket(CChar *schar,unsigned short keyTable) {

	this->type = 0x55;
	this->size = 0x44;
	memset(data, 0, 136);
	if (keyTable > 3) keyTable = 3;
	memcpy(data, (schar->k.keyList+0x40*keyTable), 0x40);
	memcpy(data+0x40, (schar->k.seenList+0x40*keyTable), 0x40);
	data[0x80] = (unsigned char)keyTable;
}

CUpdateKeyItemsPacket::~CUpdateKeyItemsPacket() {

}